package cn.ut.pc.one.xkb.service;

import cn.ut.pc.one.xkb.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xiongkaibin
 */
@FeignClient(value = "eureka-client", configuration = FeignConfig.class,fallback = HiHystrix.class)
public interface EurekaClientFeign {
    /**
     * feign调用eureka-client服务中的借口
     * @param name
     * @return
     */
    @GetMapping(value = "/hi")
    String sayHiFromClientEureka(@RequestParam String name);
}
